// #ifndef VUE3
import Vue from 'vue'
import App from './App'
import http from './api/request.js'
import verhttp from './api/Vrequest.js'
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)
Vue.config.productionTip = false
App.mpType = 'app'
Vue.prototype.$httpUrl = "https://api.yoojet.com"
Vue.prototype.$http = http
Vue.prototype.$verhttp = verhttp
const script = document.createElement('script');
script.type = 'text/javascript';
script.src = '//api.map.baidu.com/api?type=webgl&v=1.0&ak=HBy01dt6dAXbwPz2PE2LX2DUQYCx1rdA';
script.onerror = function() {
	console.error('百度地图SDK初始化失败');
};
document.body.appendChild(script);
const app = new Vue({
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
import App from './App.vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif